var version = "0.1";

var ip = "http://www.oschina.net";

var OpenAPI = {
	"dataType": "json",
	"pageSize": 10,
	
	"osc_client_id": "",	// grant_type=authorization_code 的OAuth2登录模式
	"osc_client_secret": "",
	"osc_redirect_uri": "",
	
	"client_id": "",	// grant_type=password 的直接登录模式,这种应用需要高级权限,估计要OSC内部许可才能用吧
	"client_secret": "",
	
	"authorize": ip + "/action/oauth2/authorize",
	"access_token": ip + "/action/openapi/token",
	"access_user": ip + "/action/openapi/user",
	"user_information": ip + "/action/openapi/user_information",
	"my_information": ip + "/action/openapi/my_information",

	"news_list": ip + "/action/openapi/news_list",
	"news_blog": ip + "/action/openapi/blog_list",
	"news_recommend": ip + "/action/openapi/blog_recommend_list",
	"news_detail": ip + "/action/openapi/news_detail",
	"news_blog_detail": ip + "/action/openapi/blog_detail",
	"news_search": ip + "/action/openapi/search_list",


	"post_pub": ip + "/action/openapi/post_pub",
	"question_list": ip + "/action/openapi/post_list",
	"question_detail": ip + "/action/openapi/post_detail",

	"tweet_list": ip + "/action/openapi/tweet_list",
	"tweet_detail": ip + "/action/openapi/tweet_detail",
	"tween_hot_list": ip + "/action/openapi/tweet_list",
	"tweet_pub": ip + "/action/openapi/tweet_pub",
	"tweet_delete": ip + "/action/openapi/tweet_delete",

	"my_list": ip + "/action/openapi/active_list",
	'message_list': ip + '/action/openapi/message_list',
	"message_delete": ip + "/action/openapi/message_delete",

	"comment_pub": ip + "/action/openapi/comment_pub",
	"comment_reply": ip + "/action/openapi/comment_reply",
	"comment_list": ip + "/action/openapi/comment_list",
	"comment_delete": ip + "/action/openapi/comment_delete",

	"favorite_list": ip + "/action/openapi/favorite_list",
	"favorite_add": ip + "/action/openapi/favorite_add",
	"favorite_remove": ip + "/action/openapi/favorite_remove",

	"blog_comment_list": ip + "/action/openapi/blog_comment_list",
	"blog_comment_pub": ip + "/action/openapi/blog_comment_pub",
	"blog_comment_reply": ip + "/action/openapi/blog_comment_reply",


	"user_relation": ip + "/action/openapi/update_user_relation",
	"user_dynmic_blog": ip + "/action/openapi/user_blog_list",
	"user_blog_delete": ip + "/action/openapi/user_blog_delete",


	"project_catalog_list": ip + "/action/openapi/project_catalog_list",
	"project_list": ip + "/action/openapi/project_list",
	"project_detail": ip + "/action/openapi/project_detail",
	"project_tag_list": ip + "/action/openapi/project_tag_list",

	"friends_list": ip + "/action/openapi/friends_list",

	"clear_notice": ip + "/action/openapi/clear_notice",
	"portrait_update": ip + "/action/openapi/portrait_update",
	"user_notice": ip + "/action/openapi/user_notice"
};


if (typeof(localStorage['skin'])!= "undefined") {
	var skin = '<style type="text/css"> ' + localStorage['skin'] + ' </style>';
	document.write(skin);
}